home *** CD-ROM | disk | FTP | other *** search
- dnl Process this file with autoconf to produce a configure script.
- AC_INIT(support)
-
- dnl Find the machine type and setup the linking options
- AC_CANONICAL_HOST
- changequote(<<, >>)dnl
- case "$host_cpu-$host_os" in
- i[345]86-freebsd2*)
- PIC=-fPIC ; LDFLAGS=-Bshareable ;;
- i[345]86-linux*)
- PIC=-fPIC ; LDFLAGS=-shared ;;
- i[345]86-netbsd*)
- PIC=-fPIC ; LDFLAGS=-Bshareable ;;
- i[345]86-solaris2*)
- PIC=-fPIC ; LDFLAGS=-G ;;
- *)
- AC_MSG_ERROR(Architecture not supported)
- esac
- changequote([, ])dnl
- AC_SUBST(PIC)
- AC_SUBST(LDFLAGS)
-
- dnl Checks for programs.
- AC_PROG_CC
- AC_PROG_INSTALL
-
- dnl Checks for libraries.
-
- dnl Checks for header files.
- AC_HEADER_STDC
- AC_CHECK_HEADERS(sys/time.h unistd.h)
-
- dnl Checks for typedefs, structures, and compiler characteristics.
- AC_HEADER_TIME
- AC_STRUCT_TM
- AC_STRUCT_TIMEZONE
-
- dnl Checks for library functions.
- AC_CHECK_FUNCS(getcwd gettimeofday mkdir mktime uname)
-
- dnl Setup the subdirectories for make
- subdirs="native net"
- AC_SUBST(subdirs)
-
- AC_CONFIG_HEADER(support/config.h)
- AC_OUTPUT(Makefile support/Makefile native/Makefile net/Makefile)
-